package models;

import entities.UsersEntity;


public class UserData {
    private int id;
    private String name;
    private boolean isAdmin;

    public UserData() {
    }

    public UserData(UsersEntity user) {
        this.id = user.getUserId();
        this.name = user.getUserName();
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isAdmin() {
        return isAdmin;
    }

    public void setAdmin(boolean admin) {
        isAdmin = admin;
    }
}
